package cn.zcy.service.impl;

import cn.zcy.dao.AccountDao;
import cn.zcy.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AccountSericeImpl implements AccountService {

//    @Autowired
//    @Qualifier(value = "account1")
    @Resource(type = AccountDao.class,name = "account1")
    private AccountDao accountDao;
    @Override
    public void svae() {
        accountDao.save();
    }
}
